<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.box
			{
				width: 300px;
				height: 300px; 
				border: 1px solid #000;
				/*给.box元素的背景颜色进行从白色到绿色到渐变,设置角度*/
				background: -webkit-linear-gradient(90deg,white,green);
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
	</body>
</html>
